﻿<DockPanel x:Class="HappyBa.Pages.SettingsPage"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:units="clr-namespace:Mnk.Library.WpfControls.Components.Units;assembly=Mnk.Library.WpfControls"
             xmlns:loc="clr-namespace:HappyBa.Code.Localization"
             xmlns:captioned="clr-namespace:Mnk.Library.WpfControls.Components.Captioned;assembly=Mnk.Library.WpfControls"
             xmlns:components="clr-namespace:Mnk.Library.WpfControls.Components;assembly=Mnk.Library.WpfControls"
             xmlns:pages="clr-namespace:HappyBa.Pages"
             xmlns:code="clr-namespace:HappyBa.Code"
             xmlns:data="clr-namespace:HappyBa.Core.Data;assembly=HappyBa.Core"
             xmlns:core="clr-namespace:HappyBa.Core;assembly=HappyBa.Core"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <TabControl>
        <TabItem Header="{loc:Tr Projects}">
            <units:CheckableListBoxUnit Title="{loc:Tr ConfigureProject}" UnitType="Text" ItemsSource="{Binding Projects}" Name="Projects">
                <units:CheckableListBoxUnit.ItemTemplate>
                    <DataTemplate DataType="{x:Type data:Project}">
                        <DockPanel>
                            <components:ExtCheckBox IsChecked="{Binding IsChecked}" DockPanel.Dock="Left" Padding="5,0" ValueChanged="CheckBox_Checked" VerticalAlignment="Center"/>
                            <captioned:CaptionedDatePicker Caption="{loc:Tr PlannedEndDate}" Value="{Binding PlannedEndDate}" Margin="2" VerticalAlignment="Center" DockPanel.Dock="Right" IsEnabled="{Binding IsChecked}"/>
                            <captioned:CaptionedEnumDropDownList Caption="{loc:Tr ProjectType}" Value="{Binding Type}" Margin="2" SourceEnumType="core:ProjectType" VerticalAlignment="Center" DockPanel.Dock="Right" Width="90" IsEnabled="{Binding IsChecked}"/>
                            <TextBlock Text="{Binding Key}" Padding="1" TextTrimming="CharacterEllipsis" DockPanel.Dock="Left" Width="256" VerticalAlignment="Center" HorizontalAlignment="Left" FontWeight="Bold" IsEnabled="{Binding IsChecked}"/>
                        </DockPanel>
                    </DataTemplate>
                </units:CheckableListBoxUnit.ItemTemplate>
            </units:CheckableListBoxUnit>
        </TabItem>
        <TabItem Header="{loc:Tr SearchOptions}">
            <pages:SearchOptionsPage/>
        </TabItem>
        <TabItem Header="{loc:Tr ActiveEmployees}">
            <units:ListBoxUnit Title="{loc:Tr ManageEmployees}" Name="ActiveEmployees" />
        </TabItem>
    </TabControl>
</DockPanel>
